package com._520it.wms.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@ToString
//销售出库订单
public class StockOutcomeBill extends BaseDomin {

    public static final int NORMAL = 0;//未审核
    public static final int AUDIT = 1;//已审核
    private String sn; //订单编号

    @DateTimeFormat(pattern = "yyyy-MM-dd") //接收的时候时间格式
    private Date vdate;//业务时间

    private int status;//审核状态 1代表审核,0代表未审核

    private BigDecimal totalAmount;//销售总金额

    private BigDecimal totalNumber;//销售总数量

    private Date auditTime;//审核时间

    private Date inputTime;//录入时间

    private Employee inputUser;//录入人

    private Employee auditor;//审核人

    private Client client;//客户

    private Depot depot;//仓库
    //在页面传递参数的时候 格式是items[0].product.id
    private List<StockOutcomeBillItem> items = new ArrayList<>();//销售订单明细

}